package feedback;

import java.util.ArrayList;

import user.SearchResult;

public class FeedbackManager {
	
	private ArrayList<SearchResult> feedbackRecords;
	
	public FeedbackManager() {}
	
	public void saveDB(ArrayList<SearchResult> feedbackRecords) {
		this.feedbackRecords = feedbackRecords;
		
		this.printAll();
	}
	
	private void printAll() {
		System.out.println("\nRanked search result: ------------------------------");
		for(int index = 0; index < this.feedbackRecords.size(); index ++) {
			this.feedbackRecords.get(index).print();
		}
	}
}
